home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / delegate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-04-13  |  2.4 KB  |  101 lines

  1. /*
  2.   Methods to Read/Write/Invoke Delegates.
  3. */
  4. #ifndef _MAGICK_DELEGATE_H
  5. #define _MAGICK_DELEGATE_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. #if defined(HasGS)
  12. #include "ps/iapi.h"
  13. #include "ps/errors.h"
  14. #endif
  15.  
  16. #ifndef gs_main_instance_DEFINED
  17. # define gs_main_instance_DEFINED
  18. typedef struct gs_main_instance_s gs_main_instance;
  19. #endif
  20.  
  21. #if !defined(MagickDLLCall)
  22. #  if defined(__WINDOWS__)
  23. #    define MagickDLLCall __stdcall
  24. #  else
  25. #    define MagickDLLCall
  26. #  endif
  27. #endif
  28.  
  29. typedef struct _GhostscriptVectors
  30. {
  31.   int
  32.     (MagickDLLCall *exit)(gs_main_instance *);
  33.  
  34.   int
  35.     (MagickDLLCall *init_with_args)(gs_main_instance *,int,char **);
  36.  
  37.   int
  38.     (MagickDLLCall *new_instance)(gs_main_instance **,void *);
  39.  
  40.   int
  41.     (MagickDLLCall *run_string)(gs_main_instance *,const char *,int,int *);
  42.  
  43.   void
  44.     (MagickDLLCall *delete_instance)(gs_main_instance *);
  45. } GhostscriptVectors;
  46.  
  47. typedef struct _DelegateInfo
  48. {
  49.   char
  50.     *path,
  51.     *decode,
  52.     *encode,
  53.     *commands;
  54.                                                                                 
  55.   long
  56.     mode;
  57.                                                                                 
  58.   unsigned int
  59.     spawn,
  60.     stealth;
  61.                                                                                 
  62.   struct _DelegateInfo
  63.     *previous,
  64.     *next;  /* deprecated, use GetDelegateInfoList() */
  65.  
  66.   unsigned long
  67.     signature;
  68. } DelegateInfo;
  69.  
  70. extern MagickExport char
  71.   *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
  72.     ExceptionInfo *),
  73.   **GetDelegateList(const char *,unsigned long *);
  74.  
  75. extern MagickExport const char
  76.   *GetDelegateCommands(const DelegateInfo *);
  77.  
  78. extern MagickExport const DelegateInfo
  79.   *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
  80.   **GetDelegateInfoList(const char *,unsigned long *);
  81.  
  82. extern MagickExport DelegateInfo
  83.   *SetDelegateInfo(DelegateInfo *);
  84.  
  85. extern MagickExport long
  86.   GetDelegateMode(const DelegateInfo *);
  87.  
  88. extern MagickExport unsigned int
  89.   InvokePostscriptDelegate(const unsigned int,const char *),
  90.   InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
  91.   ListDelegateInfo(FILE *,ExceptionInfo *);
  92.  
  93. extern MagickExport void
  94.   DestroyDelegateList(void);
  95.  
  96. #if defined(__cplusplus) || defined(c_plusplus)
  97. }
  98. #endif
  99.  
  100. #endif
  101.